package com.uni.crawl.service.impl.crawl;

import com.github.yulichang.base.MPJBaseServiceImpl;
import com.uni.crawl.mapper.CrawlMonitorMapper;
import com.uni.crawl.model.entity.crawl.CrawlMonitor;
import com.uni.crawl.service.crawl.CrawlMonitorService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 爬虫监控 服务实现类
 * </p>
 *
 * @author JervisPG
 * @since 2024-02-14
 */
@Service
public class CrawlMonitorServiceImpl extends MPJBaseServiceImpl<CrawlMonitorMapper, CrawlMonitor> implements CrawlMonitorService {

    @Override
    public boolean exists(String urlMd5) {
        return baseMapper.getOneByUrlMd5(urlMd5) != null;
    }
}
